<td>
	<a href="<?php echo Yii::app()->controller->createUrl('view',array('id'=>$model->id))?>">查看</a>
	<?php 
		if ($model->isPayAble()) 
			echo CHtml::link('付款',Yii::app()->controller->createUrl('pay',array('id'=>$model->id)),array('target'=>'_blank'));
	?>
	<?php 
		if ($model->isCanceldAble()) 
			echo CHtml::link('取消',Yii::app()->controller->createUrl('cancel',array('id'=>$model->id)));
	?>
	<?php 
		if ($model->isCommentAble() && $model->getAttribute('object_type') != 'OrderTicket') 
			echo CHtml::link('点评',Yii::app()->createUrl('provide/goodsComment/edit',array('id'=>CHtml::value($model, 'items.goods_id'),'type' => get_class(CHtml::value($model, 'items.goods')), 'orderId'=>$model->id)), array(
				'class' => 'btn-comment'
			));
	?>
</td>